package de.gbeine.java.depview.ui.component;

import java.awt.FlowLayout;

import javax.swing.JLabel;
import javax.swing.JPanel;

import de.gbeine.java.depview.ui.controller.StatusPanel;

/**
 *
 * @author gbeine
 *
 */
public final class MainStatusPanel extends JPanel implements StatusPanel {

    /**
     *
     */
    private static final long serialVersionUID = -7692162517328229484L;

    /**
     *
     */
    private final JLabel lblMessage;

    /**
     * Create the panel.
     */
    public MainStatusPanel() {
        super();
        FlowLayout flowLayout = (FlowLayout) getLayout();
        flowLayout.setAlignment(FlowLayout.LEFT);

        this.lblMessage = new JLabel("Dependency Viewer");
        add(this.lblMessage);
    }

    @Override
    public void setMessage(final String pMessage) {
        this.lblMessage.setText(pMessage);
    }

}
